#ifndef LIST_H
#define LIST_H
#include "Node.h"
#include <string>

class List {
private:
    Node* head; 
public:
    List();
    ~List();

    
    void createList();             
    void displayList() const;       
    People* searchByID(int id) const; 
    People* searchByName(string name) const; 
    void addNode(People* p);       
    bool modifyNode(int id);       
    bool deleteNode(int id);       
    void sortByID();               
    void readFromFile(const string& filename);
    void saveToFile(const string& filename) const; 
};

#endif
